package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Maps;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Map;
/**
 * @author 刘国航
 * @since 2024/5/13 下午2:26
 */
@Getter
@AllArgsConstructor
public enum WorkCityServerPreAssessTypeEnum {

    NO_UP_AND_NO_DOWN(0, "不升也不降"),
    UP(1, "升级"),
    DOWN(2, "降级"),
    ;

    /**
     * 编码
     */
    @EnumValue
    private Integer code;

    /**
     * 描述
     */
    private String describe;


    public static Map<String,String> getAll (){

        Map<String,String> map = Maps.newLinkedHashMap();
        for (WorkCityServerPreAssessTypeEnum value : WorkCityServerPreAssessTypeEnum.values()) {
            map.put(value.name(), value.getDescribe());
        }
        return map;

    }

}
